﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using SuperDownloadStudio.Core.Validation;

namespace CoreTests
{
    [TestClass]
    public class UnitTest1
    {

        public class Data{
            public int Weight;
            public double Power;
        }

        [TestMethod]
        public void TestUrlValidation()
        {
            ValidationURL.ValidateUrl("localhost");
        }

        [TestMethod]
        public void TestMethod1()
        {

            List<Data> list = new List<Data>();

            for (int i = 0; i < 10; ++i)
            {
             Data dataObject = new Data();
                dataObject.Power = 0.0;
                dataObject.Weight = 0;
                list.Add(dataObject);
            }


            Data current = list[3];

            current.Weight = 100;

            Assert.IsTrue(list[3].Weight == 100);
        }

    }
}
